package D12_6z.有参构造;

import java.lang.reflect.Constructor;

public class Demo1 {
    public static void main(String[] args) throws Exception {
        Class<?> aClass = Class.forName("Y2019.M12_.D12_6z.有参构造.Student");
        Constructor<?> c = aClass.getConstructor(String.class);
        c.setAccessible(true);
        c.newInstance("小明");
    }
}
